import Vue from "vue";
import "@/assets/styles/element-reset.scss";
import {
    Loading,
    MessageBox,
    Message,
    Input,
    InputNumber,
    Button,
    Upload,
    Form,
    FormItem,
    Slider,
    ColorPicker,
    Select,
    Option,
    Radio,
    RadioGroup,
    Switch,
    Tooltip,
    Popover,
    Steps,
    Step,
    Checkbox,
    Tag,
    Table,
    TableColumn,
    Tabs,
    TabPane,
    Image,
    Carousel,
    CarouselItem,
    InfiniteScroll,
    Progress,
} from "element-ui";
import lang from "element-ui/lib/locale/lang/en";
import locale from "element-ui/lib/locale";
// 设置语言
locale.use(lang);

// 引入组件
Vue.use(Loading.directive);
Vue.prototype.$loading = Loading.service;
Vue.prototype.$message = Message;
Vue.prototype.$msgbox = MessageBox;
Vue.prototype.$prompt = MessageBox.prompt;
// Vue.prototype.$confirm = MessageBox.confirm;

Vue.use(Input);
Vue.use(InputNumber);
Vue.use(Button);
Vue.use(Upload);
Vue.use(Form);
Vue.use(FormItem);
Vue.use(Slider);
Vue.use(ColorPicker);
Vue.use(Select);
Vue.use(Option);
Vue.use(Radio);
Vue.use(RadioGroup);
Vue.use(Switch);
Vue.use(Tooltip);
Vue.use(Popover);
Vue.use(Steps);
Vue.use(Step);
Vue.use(Checkbox);
Vue.use(Tag);
Vue.use(Table);
Vue.use(TableColumn);
Vue.use(Tabs);
Vue.use(TabPane);
Vue.use(Image);
Vue.use(Carousel);
Vue.use(CarouselItem);
Vue.use(InfiniteScroll);
Vue.use(Progress);
